package cn.gov.anhai.test;

import cn.gov.anhai.AppStart;
import cn.gov.anhai.utils.WeiXinUtil;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import javax.annotation.Resource;
import java.util.Arrays;

@SpringBootTest(classes = {AppStart.class})
@RunWith(SpringRunner.class)
public class Main {

    @Resource
    WeiXinUtil wxUtil;

    @Test
    public void accessTokenTest() {
        System.out.println("accessTokenTest");
        String accessToken = wxUtil.getAccessToken();
        System.out.println("accessToken=====>" + accessToken);
    }

}
